package org.kl.bf.entity.basic;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.Transient;

//JPA标识
@Entity
@Table(name = "basic_data_role")
public class DataRole extends AuditableEntity {
	private static final long serialVersionUID = -8886662591678766201L;
	private String dataRoleNo;
	private String dataRoleName;
	private Set<DataDetail> dataDetailSet;

	@JsonIgnore
	@Transient
	public Set<DataDetail> getDataDetailSet() {
		return dataDetailSet;
	}

	public void setDataDetailSet(Set<DataDetail> dataDetailSet) {
		this.dataDetailSet = dataDetailSet;
	}

	public String getDataRoleNo() {
		return dataRoleNo;
	}

	public void setDataRoleNo(String dataRoleNo) {
		this.dataRoleNo = dataRoleNo;
	}

	public String getDataRoleName() {
		return dataRoleName;
	}

	public void setDataRoleName(String dataRoleName) {
		this.dataRoleName = dataRoleName;
	}

	@Override
	public String toString() {
		return "DataRole [dataRoleNo=" + dataRoleNo + ", dataRoleName=" + dataRoleName + ", dataDetailSet=" + dataDetailSet + "]";
	}

}
